#ifndef PLAYER_H

#define PLAYER_H

#include "SDL.h"
#include "Structures.h"
#include "GameObject.h"
#include "Animation.h"
#include "Defines.h"

class Player : public GameObject
{
public:
	Player();
	~Player();

	void OnEvent(SDL_Event* event);
	void OnDraw(SDL_Surface* destinationSurface);
	void OnUpdate();
	///<summary> Moves the player, direction has to be one of the Directions specified in the DEFINES class</summary>
	void Move(int direction);

private:
	Animation* idle;
	Animation* left;
	Animation* right;
	Animation* up;
	Animation* down;
	int health;

	int facingDirection;

	Point pos;
	Point speed;
};

#endif